package com.emperor.mapper;

import com.emperor.anno.AutoFill;
import com.emperor.dto.SkuSaveDto;
import com.emperor.entity.Sku;
import com.emperor.enumeration.OperationType;
import com.emperor.vo.SkuVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SkuMapper {
    @AutoFill(OperationType.INSERT)
    void save(Sku sku);

    List<SkuVo> findAll(String className);
    @AutoFill(OperationType.UPDATE)
    void updateById(String skuId, SkuSaveDto dto);
}
